package com.dearbinge.data.dao.commodity;

import com.dearbinge.data.pojo.commodity.CommodityCommentShopScoreDO;
import org.mapstruct.Mapper;

/**
 * 商品评价 店铺评分dao
 *
 * @author wes
 * @date 2019/3/23
 */
@Mapper
public interface CommodityCommentShopScoreMapper  {


    /**
     * 逻辑删除
     * @param shopScoreId 店铺评分id
     * @return 影响行数
     */
    int deleteById(Integer shopScoreId);

    /**
     *  插入
     * @param commodityCommentShopScoreDO 店铺评分DO
     * @return 影响行数
     */
    int insert(CommodityCommentShopScoreDO commodityCommentShopScoreDO);

    /**
     * 根据id查询
     * @param shopScoreId 店铺评分id
     * @return 店铺评分DO
     */
    CommodityCommentShopScoreDO getById(Integer shopScoreId);

    /**
     * 更新
     * @param commodityCommentShopScoreDO 店铺评分DO
     * @return 影响行数
     */
    int update(CommodityCommentShopScoreDO commodityCommentShopScoreDO);


    /**
     * 根据订单id查询
     * @param orderId 订单id
     * @return CommodityCommentShopScoreDO
     */
    CommodityCommentShopScoreDO getByOrderId(Integer orderId);

}